﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hardanger.Model;
using System.Collections.ObjectModel;

namespace Hardanger.ViewModel
{
	public static class ResultsManager
	{
		private static ObservableCollection<FeatureResult> _featureResults = new ObservableCollection<FeatureResult>();
		public static ObservableCollection<FeatureResult> FeatureResults
		{
			get
			{
				return _featureResults;
			}		
		}
	
		public static void Receive(FeatureResult featureResult)
		{
			SessionManager.Current.CallingDispatcher.BeginInvoke((System.Action)delegate { _featureResults.Add(featureResult); });			
		}
	}
}
